package com.itheima.name;

import java.util.ArrayList;
import java.util.Random;

public class Demo8 {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();

        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);
        arrayList.add(4);
        arrayList.add(5);
        System.out.println(arrayList.size());
        Integer remove = arrayList.remove(0);
        System.out.println(remove);
        System.out.println(arrayList.size());
    }
}
